package com.jxtc.enterprise.tenant.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Min;

@Schema(description = "租户管理平台新增菜品时传递的二级菜品规格信息")
@Getter
@Setter
@ToString
public class TenantFoodSpecificationItemDTO {
    @Schema(description = "合作价，单位：元", example = "12")
    @Min(value = 0, message = "价格必须大于小于 0")
    private Double storePrice;

    @Schema(description = "销售价，单位：元", example = "16.8")
    @Min(value = 0, message = "价格必须大于小于 0")
    private Double salePrice;

    @Schema(description = "规格名称", example = "二级规格")
    private String name;

    @Schema(description = "限购数量")
    @Min(value = 1, message = "限购数量至少为 1")
    private Integer limitCount;
}
